import { dataCompanyAxios } from '@/utils/request.ts'

export const getCompanyInfoOverviewOverviewInfo = (data: any): Promise<any> => {
  return dataCompanyAxios({
    url: `/companyInfo/overview/overviewInfo/${data.companyCode}`,
    method: 'get',
    data
  })
}
export const getCompanyInfoOverviewIntroduction = (data: any): Promise<any> => {
  return dataCompanyAxios({
    url: `/companyInfo/overview/introduction/${data.companyCode}`,
    method: 'get',
    data
  })
}
export const postCompanyInfoOverviewMainCustomer = (data: any): Promise<any> => {
  return dataCompanyAxios({
    url: `/companyInfo/overview/mainCustomer`,
    method: 'post',
    data
  })
}
export const getCompanyInfoOverviewRevenueIndex = (params: any): Promise<any> => {
  return dataCompanyAxios({
    url: `/companyInfo/overview/revenueIndex/${params.companyCode}`,
    method: 'get',
    params
  })
}
export const getCompanyInfoOverviewGetRecentTenYears = (params: any): Promise<any> => {
  return dataCompanyAxios({
    url: `/companyInfo/overview/getRecentTenYears/${params.companyCode}`,
    method: 'get',
    params
  })
}
export const postCompanyInfoDetailFinanceProcess = (data: any): Promise<any> => {
  return dataCompanyAxios({
    url: `/companyInfo/detail/financeProcess`,
    method: 'post',
    data
  })
}
